﻿<Application
    x:Class="GSBA.Views.App"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:GSBA"
    xmlns:common="using:GSBA.Common"
    >

    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>

                <!-- 
                    Styles that define common aspects of the platform look and feel
                    Required by Visual Studio project and item templates
                 -->
                <ResourceDictionary Source="Common/StandardStyles.xaml"/>
                <ResourceDictionary Source="Assets/ApplicationStyles.xaml"/>
            </ResourceDictionary.MergedDictionaries>
            <x:String x:Key="AppName">GSBA</x:String>
            <x:String x:Key="MainTitle">GSBA Directory</x:String>
            <common:StaticResourceConverter x:Key="StaticResourceConverter"/>

            <DataTemplate x:Key="CustomTileSmallItem">
                <Grid Width="200" Height="110">
                    <Border Background="{Binding BackgroundResource, Converter={StaticResource StaticResourceConverter}}" >
                    </Border>
                    <StackPanel VerticalAlignment="Bottom">
                        <Border Background="#FF1A1A1A" Opacity=".9" Padding="5,0,0,0">
                            <TextBlock Text="{Binding Name}" Foreground="#FFFFFFFF" Style="{StaticResource SubheaderTextStyle}" Height="100"/>
                        </Border>
                    </StackPanel>
                </Grid>
            </DataTemplate>

            <DataTemplate x:Key="SnappedCustomTileSmallItem">
                <Grid Height="64" Background="{Binding BackgroundResource, Converter={StaticResource StaticResourceConverter}}">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="5" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*" />
                    </Grid.RowDefinitions>
                    <Border Grid.Column="1" Background="#FF1A1A1A" Opacity=".9">
                        <TextBlock Padding="5,0,0,0" Text="{Binding Name}" Foreground="#FFFFFFFF" FontSize="21" TextWrapping="Wrap" />
                    </Border>
                </Grid>
            </DataTemplate>

        </ResourceDictionary>
    </Application.Resources>
</Application>
